package booking.utils;

import org.openqa.selenium.By;
import static booking.utils.TestData.*;

public class Locators {
	//LoginPage locators
	public static By inputLoginLocator = By.name("login");
	public static By inputPasswordLocator = By.name("passwd");
	public static By btnSubmitCredentialsLocator = By.xpath("//button[@type='submit']");
	
	//ControlPanelPage locators
	
	public static By hrefOrderTicketsLocator = By.xpath("/html/body/div/div[3]/div/div/div/ul/li/a");
	
	//HomePage locators

	public static By btnNavigateToUserControlPanelLocator = By.xpath("/html/body/div/div/div/div/div[2]/a");
	public static By displayedLoginLocator = By.xpath("/html/body/div/div[2]/span/a");
	public static By btnSearchButtonLocator = By.name("search");
	public static By inputFromLocator = By.name("station_from");
	public static By dropdownFromLocator = By.xpath("//div[@title='"+fromDataFound+"']");
	public static By inputToLocator = By.name("station_till");
	public static By dropdownToLocator = By.xpath("//div[@title='"+toData+"']");
	public static By inputDepartureDateLocator = By.name("date_dep");
	public static By selectDepartureTimeFromLocator = By.name("time_dep");
	public static By bntSearchLocator = By.name("search");
	public static By txtResNotFoundLocator = By.id("ts_res_not_found");
	public static By tableResultsLocator = By.id("ts_res_tbl");
}
